import request from '@/utils/request'
//项目列表（结算/未结算）
export function item_list(dat) {
  return request({
    url: '/market/item/item_list',
    method: 'post',
    data:{
      is_jiesuan:dat.is_jiesuan,
      page:dat.page,
      limit:dat.limit,
      keyword:dat.keyword,
      search_time:dat.search_time
    }
  })
}
//删除工作日记
export function diary_del(id) {
  return request({
    url: '/market/content/diary_del',
    method: 'get',
    params:{
      id,
    }
  })
}
//添加工作日记
export function diary_add(title,content,is_top,sort) {
  return request({
    url: '/market/content/diary_add',
    method: 'post',
    data:{
      title,
      content,
      is_top,
      sort
    }
  })
}
//工作日记详情
export function diary_detail(id) {
  return request({
    url: '/market/content/diary_detail',
    method: 'post',
    data:{
      id
    }
  })
}
//置顶工作日记
export function diary_top(id,is_top) {
  return request({
    url: '/market/content/diary_top',
    method: 'post',
    data:{
      id,
      is_top
    }
  })
}
//编辑
export function diary_edit(id,is_top,title,content,sort) {
  return request({
    url: '/market/content/diary_edit',
    method: 'post',
    data:{
      id,
      is_top,
      title,
      content,
      sort
    }
  })
}
